<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="printer.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.printer.html">Printer 函数</a></div>
 <div class="up"><a href="book.printer.html">Printer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="printer.constants" class="appendix">
  <h1>预定义常量</h1>

  <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
  <dl>

   
    <dt id="constant.printer-copies">
     <strong><code>PRINTER_COPIES</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-mode">
     <strong><code>PRINTER_MODE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-title">
     <strong><code>PRINTER_TITLE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-devicename">
     <strong><code>PRINTER_DEVICENAME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-driverversion">
     <strong><code>PRINTER_DRIVERVERSION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-output-file">
     <strong><code>PRINTER_OUTPUT_FILE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-resolution-y">
     <strong><code>PRINTER_RESOLUTION_Y</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-resolution-x">
     <strong><code>PRINTER_RESOLUTION_X</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-scale">
     <strong><code>PRINTER_SCALE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-background-color">
     <strong><code>PRINTER_BACKGROUND_COLOR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-paper-length">
     <strong><code>PRINTER_PAPER_LENGTH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-paper-width">
     <strong><code>PRINTER_PAPER_WIDTH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-paper-format">
     <strong><code>PRINTER_PAPER_FORMAT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-custom">
     <strong><code>PRINTER_FORMAT_CUSTOM</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-letter">
     <strong><code>PRINTER_FORMAT_LETTER</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-legal">
     <strong><code>PRINTER_FORMAT_LEGAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-a3">
     <strong><code>PRINTER_FORMAT_A3</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-a4">
     <strong><code>PRINTER_FORMAT_A4</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-a5">
     <strong><code>PRINTER_FORMAT_A5</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-b4">
     <strong><code>PRINTER_FORMAT_B4</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-b5">
     <strong><code>PRINTER_FORMAT_B5</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-format-folio">
     <strong><code>PRINTER_FORMAT_FOLIO</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-orientation">
     <strong><code>PRINTER_ORIENTATION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-orientation-portrait">
     <strong><code>PRINTER_ORIENTATION_PORTRAIT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-orientation-landscape">
     <strong><code>PRINTER_ORIENTATION_LANDSCAPE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-text-color">
     <strong><code>PRINTER_TEXT_COLOR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-text-align">
     <strong><code>PRINTER_TEXT_ALIGN</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-baseline">
     <strong><code>PRINTER_TA_BASELINE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-bottom">
     <strong><code>PRINTER_TA_BOTTOM</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-top">
     <strong><code>PRINTER_TA_TOP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-center">
     <strong><code>PRINTER_TA_CENTER</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-left">
     <strong><code>PRINTER_TA_LEFT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-ta-right">
     <strong><code>PRINTER_TA_RIGHT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-solid">
     <strong><code>PRINTER_PEN_SOLID</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-dash">
     <strong><code>PRINTER_PEN_DASH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-dot">
     <strong><code>PRINTER_PEN_DOT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-dashdot">
     <strong><code>PRINTER_PEN_DASHDOT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-dashdotdot">
     <strong><code>PRINTER_PEN_DASHDOTDOT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-pen-invisible">
     <strong><code>PRINTER_PEN_INVISIBLE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-solid">
     <strong><code>PRINTER_BRUSH_SOLID</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-custom">
     <strong><code>PRINTER_BRUSH_CUSTOM</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-diagonal">
     <strong><code>PRINTER_BRUSH_DIAGONAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-cross">
     <strong><code>PRINTER_BRUSH_CROSS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-diagcross">
     <strong><code>PRINTER_BRUSH_DIAGCROSS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-fdiagonal">
     <strong><code>PRINTER_BRUSH_FDIAGONAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-horizontal">
     <strong><code>PRINTER_BRUSH_HORIZONTAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-brush-vertical">
     <strong><code>PRINTER_BRUSH_VERTICAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-thin">
     <strong><code>PRINTER_FW_THIN</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-ultralight">
     <strong><code>PRINTER_FW_ULTRALIGHT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-light">
     <strong><code>PRINTER_FW_LIGHT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-normal">
     <strong><code>PRINTER_FW_NORMAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-medium">
     <strong><code>PRINTER_FW_MEDIUM</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-bold">
     <strong><code>PRINTER_FW_BOLD</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-ultrabold">
     <strong><code>PRINTER_FW_ULTRABOLD</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-fw-heavy">
     <strong><code>PRINTER_FW_HEAVY</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-local">
     <strong><code>PRINTER_ENUM_LOCAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-name">
     <strong><code>PRINTER_ENUM_NAME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-shared">
     <strong><code>PRINTER_ENUM_SHARED</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-default">
     <strong><code>PRINTER_ENUM_DEFAULT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-connections">
     <strong><code>PRINTER_ENUM_CONNECTIONS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-network">
     <strong><code>PRINTER_ENUM_NETWORK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
   
    <dt id="constant.printer-enum-remote">
     <strong><code>PRINTER_ENUM_REMOTE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      
     </span>
    </dd>

   
  </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="printer.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.printer.html">Printer 函数</a></div>
 <div class="up"><a href="book.printer.html">Printer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
